﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020001D7 RID: 471
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ChallengeStoryBuffInfo : IMessage<ChallengeStoryBuffInfo>, IMessage, IEquatable<ChallengeStoryBuffInfo>, IDeepCloneable<ChallengeStoryBuffInfo>, IBufferMessage
	{
		// Token: 0x17000639 RID: 1593
		// (get) Token: 0x06001553 RID: 5459 RVA: 0x0003CE64 File Offset: 0x0003B064
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ChallengeStoryBuffInfo> Parser
		{
			get
			{
				return ChallengeStoryBuffInfo._parser;
			}
		}

		// Token: 0x1700063A RID: 1594
		// (get) Token: 0x06001554 RID: 5460 RVA: 0x0003CE6B File Offset: 0x0003B06B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ChallengeStoryBuffInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700063B RID: 1595
		// (get) Token: 0x06001555 RID: 5461 RVA: 0x0003CE7D File Offset: 0x0003B07D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ChallengeStoryBuffInfo.Descriptor;
			}
		}

		// Token: 0x06001556 RID: 5462 RVA: 0x0003CE84 File Offset: 0x0003B084
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChallengeStoryBuffInfo()
		{
		}

		// Token: 0x06001557 RID: 5463 RVA: 0x0003CE8C File Offset: 0x0003B08C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChallengeStoryBuffInfo(ChallengeStoryBuffInfo other) : this()
		{
			this.buffTwo_ = other.buffTwo_;
			this.buffOne_ = other.buffOne_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06001558 RID: 5464 RVA: 0x0003CEBD File Offset: 0x0003B0BD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChallengeStoryBuffInfo Clone()
		{
			return new ChallengeStoryBuffInfo(this);
		}

		// Token: 0x1700063C RID: 1596
		// (get) Token: 0x06001559 RID: 5465 RVA: 0x0003CEC5 File Offset: 0x0003B0C5
		// (set) Token: 0x0600155A RID: 5466 RVA: 0x0003CECD File Offset: 0x0003B0CD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint BuffTwo
		{
			get
			{
				return this.buffTwo_;
			}
			set
			{
				this.buffTwo_ = value;
			}
		}

		// Token: 0x1700063D RID: 1597
		// (get) Token: 0x0600155B RID: 5467 RVA: 0x0003CED6 File Offset: 0x0003B0D6
		// (set) Token: 0x0600155C RID: 5468 RVA: 0x0003CEDE File Offset: 0x0003B0DE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint BuffOne
		{
			get
			{
				return this.buffOne_;
			}
			set
			{
				this.buffOne_ = value;
			}
		}

		// Token: 0x0600155D RID: 5469 RVA: 0x0003CEE7 File Offset: 0x0003B0E7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ChallengeStoryBuffInfo);
		}

		// Token: 0x0600155E RID: 5470 RVA: 0x0003CEF5 File Offset: 0x0003B0F5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ChallengeStoryBuffInfo other)
		{
			return other != null && (other == this || (this.BuffTwo == other.BuffTwo && this.BuffOne == other.BuffOne && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600155F RID: 5471 RVA: 0x0003CF34 File Offset: 0x0003B134
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.BuffTwo != 0U)
			{
				num ^= this.BuffTwo.GetHashCode();
			}
			if (this.BuffOne != 0U)
			{
				num ^= this.BuffOne.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06001560 RID: 5472 RVA: 0x0003CF8C File Offset: 0x0003B18C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06001561 RID: 5473 RVA: 0x0003CF94 File Offset: 0x0003B194
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06001562 RID: 5474 RVA: 0x0003CFA0 File Offset: 0x0003B1A0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.BuffTwo != 0U)
			{
				output.WriteRawTag(64);
				output.WriteUInt32(this.BuffTwo);
			}
			if (this.BuffOne != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.BuffOne);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06001563 RID: 5475 RVA: 0x0003CFFC File Offset: 0x0003B1FC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.BuffTwo != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.BuffTwo);
			}
			if (this.BuffOne != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.BuffOne);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06001564 RID: 5476 RVA: 0x0003D054 File Offset: 0x0003B254
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ChallengeStoryBuffInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.BuffTwo != 0U)
			{
				this.BuffTwo = other.BuffTwo;
			}
			if (other.BuffOne != 0U)
			{
				this.BuffOne = other.BuffOne;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06001565 RID: 5477 RVA: 0x0003D0A4 File Offset: 0x0003B2A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06001566 RID: 5478 RVA: 0x0003D0B0 File Offset: 0x0003B2B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 64U)
				{
					if (num != 104U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.BuffOne = input.ReadUInt32();
					}
				}
				else
				{
					this.BuffTwo = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040008D0 RID: 2256
		private static readonly MessageParser<ChallengeStoryBuffInfo> _parser = new MessageParser<ChallengeStoryBuffInfo>(() => new ChallengeStoryBuffInfo());

		// Token: 0x040008D1 RID: 2257
		private UnknownFieldSet _unknownFields;

		// Token: 0x040008D2 RID: 2258
		public const int BuffTwoFieldNumber = 8;

		// Token: 0x040008D3 RID: 2259
		private uint buffTwo_;

		// Token: 0x040008D4 RID: 2260
		public const int BuffOneFieldNumber = 13;

		// Token: 0x040008D5 RID: 2261
		private uint buffOne_;
	}
}
